from manim import *

class SquareAndCircle(Scene):
    def construct(self):
        circle = Circle()
        circle.set_fill(color=PINK, opacity=0.5)

        square = Square()
        square.set_fill(color=BLUE, opacity=0.5)

        square.next_to(mobject_or_point=circle, direction=RIGHT, buff=0.5)

        self.play(Create(mobject=square), Create(mobject=circle))

        self.play(FadeOut(square, circle))
